<template>
    <el-container>
        <el-main style="height: 300px;">
            <el-form :inline="true">
                <el-row>
                    <el-col span="24">
                        <el-form-item label="姓名：">
                            <el-input v-model="form.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col span="24">
                        <el-form-item label="密码：">
                            <el-input v-model="form.password" type="password"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <button style="margin: 0 15px">确定</button>
                    <button @click="back">返回</button>
                </el-row>
            </el-form>
        </el-main>
    </el-container>
</template>
<script>

    export default {
        name: 'Register',
        data() {
            return {
                form: {
                    name: '',
                    password: ''
                }
            }
        },
        methods: {
            back() {
                this.$router.push("/")
            }
        }
    }

</script>

